Skip to main content

mergHKRequestAuthorization

Type

command

Summary

Requests permission to save and read the specified data types

Syntax

mergHKRequestAuthorization <pShareIdentifiers>, <pReadIdentifiers>

Description

If you call this command with a new data type (a type of data that the user has not previously granted or denied permission for in this app), the system automatically displays the permission form, listing all the requested permissions. After the user has finished responding, this method calls its completion block on a background queue. If the user has already chosen to grant or prohibit access to all of the types specified, the completion is called without prompting the user.

Parameters

NameTypeDescription

pShareIdentifiers

A list of type identifiers as documented here. If the user grants permission" as your app can create and save these data types to the HealthKit store. The identifier is translated into a generic object type.

pReadIdentifiers

A list of type identifiers as documented here. If the user grants permission" as your app can read these data types from the HealthKit store. The identifier is translated into a generic object type.

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?